package the_second_chapter;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Scanner;

public class TestInput {

	private static void transferInputStreamToFile(InputStream ins, File file) {
		FileOutputStream os = null;
		try {
			os = new FileOutputStream(file);
			int r = 0;
			byte[] buffer = new byte[1024];
			while ((r = ins.read(buffer)) != -1) {
				os.write(buffer, 0, r);
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		System.out.println("请输入一个数：");
		int i = input.nextInt();
		System.out.println(i);
	}
}
